const path = require("path");
//__dirname
function resolve(dir){
    return path.join(__dirname,dir);//当前项目的绝对路径
}

module.exports = {
    chainWebpack:(config)=>{
        config.resolve.alias.set('@',resolve('./src')).set('@c',resolve('src/components')).set('@v',resolve('src/views')).set('@a',resolve('src/assets'));
        // config.resolve.symlinks(true);//打开热更新
    },
    devServer:{
        open:true,
        port:8000,
        compress:true,
        disableHostCheck:true
    }
}